#include "listwidget.h"
#include <QListWidgetItem>
#include <QIcon>
#include <QHBoxLayout>

ListWidget::ListWidget(QWidget *parent)
    : QWidget(parent)
{
    label = new QLabel;
    label->setFixedWidth(70);
    list = new QListWidget;
    list->addItem(new QListWidgetItem(QIcon(":/images/administrator2_(edit)_16x16.gif"),tr("one")));
    list->addItem(new QListWidgetItem(QIcon(":/images/administrator2_16x16.gif"),tr("one")));
    list->addItem(new QListWidgetItem(QIcon(":/images/administrator3_(add)_16x16.gif"),tr("one")));
    list->addItem(new QListWidgetItem(QIcon(":/images/administrator3_(delete)_16x16.gif"),tr("one")));
    list->addItem(new QListWidgetItem(QIcon(":/images/administrator3_(edit)_16x16.gif"),tr("one")));
    list->addItem(new QListWidgetItem(QIcon(":/images/administrator3_16x16.gif"),tr("one")));
    list->setViewMode(QListView::IconMode);

    QHBoxLayout *layout = new QHBoxLayout;
    layout->addWidget(label);
    layout->addWidget(list);

    setLayout(layout);
}

ListWidget::~ListWidget()
{

}
